import request from '@/utils/request'

// 获取订购套餐信息
export function getOrderServe() {
  return request({
    url: '/system/acddShop/orderServe',
    method: 'get'
  })
}

// 立即订购
export function payOrder(data) {
  return request({
    url: '/system/acddShop/payOrder',
    method: 'post',
    data
  })
}

// 计算订购价格 传套餐id
export function getFee(id) {
  return request({
    url: `/system/acddShop/calculateAnnualFee/${id}`,
    method: 'get'
  })
}

// 判断是否是子账户
export function isSubAccount() {
  return request({
    url: '/system/acddShop/isSubAccount',
    method: 'get'
  })
}
